﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JAAF.UI
{
    /// <summary>
    /// Contains the arguments for the <see cref="UIProcessState+StateChanged"/> event.
    /// </summary>
    public class UIProcessStateChangedEventArgs : System.EventArgs
    {
        /// <summary>
        /// The name of the property of the <see cref="UIProcessState"/>
        /// that has changed.
        /// </summary>
        public readonly string PropertyName;

        /// <summary>
        /// The old value of the <see cref="UIProcessState"/> property.
        /// </summary>
        public readonly object OldValue;

        /// <summary>
        /// Creates a new instance of the UIProcessStateChangedEventArgs type.
        /// </summary>
        /// <param name="a_sPropertyName">The name of the property that has changed.</param>
        /// <param name="a_oOldValue">The old value of the property.</param>
        public UIProcessStateChangedEventArgs(string a_sPropertyName, object a_oOldValue)
        {
            this.PropertyName = a_sPropertyName;
            this.OldValue = a_oOldValue;
        }
    }

}
